package edu.nf.ch02;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.logging.Logger;

@Slf4j
@SpringBootApplication
public class Ch02Application {

    //private static final Logger log = Logger.getLogger("Ch02Application");
    public static void main(String[] args) {
        SpringApplication.run(Ch02Application.class, args);
        log.info("启动....");

       for (int i = 0; i < 1000; i++) {
           log.info("正在运行第"+i+"次..........");
       }
        log.info("运行结束..........");
    }

}
